package learning.timer_timerTask;

import java.util.Timer;
import java.util.TimerTask;

public class Timer_TimerTask2 {
	public static void main(String[] args) {
		Timer t=new Timer();
		TimerTask tt=new TimerTask() {
			
			@Override
			public void run() {
				System.out.println("hello Tom");
			}
		};
		t.schedule(tt, 2000, 1000);
	}

}
